package me.zingon.wxbus.model;


import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Station {

  @TableId(type = IdType.AUTO)
  private Long id;
  private String stationId;
  private String stationName;
  private String lng;
  private String lat;
  private Date createTime;
  private Date updateTime;
  private Integer isDeleted;

  public Station() {
  }

  public Station(JSONObject station) {
    this.stationId=station.getStr("stationId");
    this.stationName = station.getStr("stationName");
    this.lng=station.getStr("lng");
    this.lat=station.getStr("lat");
    this.createTime=new Date();
    this.isDeleted=0;
  }


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getStationId() {
    return stationId;
  }

  public void setStationId(String stationId) {
    this.stationId = stationId;
  }

  public String getStationName() {
    return stationName;
  }

  public void setStationName(String stationName) {
    this.stationName = stationName;
  }

  public String getLng() {
    return lng;
  }

  public void setLng(String lng) {
    this.lng = lng;
  }

  public String getLat() {
    return lat;
  }

  public void setLat(String lat) {
    this.lat = lat;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getIsDeleted() {
    return isDeleted;
  }

  public void setIsDeleted(Integer isDeleted) {
    this.isDeleted = isDeleted;
  }
}
